home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_1246 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  484 b   |  21 lines

  1. on(release){
  2.    if(_root.magRune >= 8 && _root.windRune >= 4 && this.timey.timer == 100)
  3.    {
  4.       _root.magRune -= 8;
  5.       _root.windRune -= 4;
  6.       this.timey.timer = 0;
  7.       this.timey.timeIt = 0.39 + _root.spe * 0.04;
  8.       if(this.timey.timeIt > 3)
  9.       {
  10.          this.timey.timeIt = 3;
  11.       }
  12.       this.timey._visible = true;
  13.       _root.bigR._visible = true;
  14.       _root.bigR.play();
  15.    }
  16.    else
  17.    {
  18.       _root.messy = "Not enough Runes";
  19.    }
  20. }
  21.